const getters = {
  sidebar: state => state.app.sidebar,
  token: state => state.user.token, // token
  userID: state => state.user.user_id, // 登录人的guid
  device: state => state.app.device,
  avatar: state => state.user.avatar,
  name: state => state.user.username,
  lastTime: state => state.user.last_time,
  roles: state => state.user.roles,
  code: state => state.user.code,
  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters
}
export default getters
